package com.qs.rocketmq.mb.dto;

public class Page<T> {

    private int pageSize;

    private int pageNum;

    private T searchData;

    public int getPageSize() {
        if (pageSize < 0) {
            pageSize = 0;
        }

        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        if (pageNum < 0) {
            pageNum = 0;
        }

        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public T getSearchData() {
        return searchData;
    }

    public void setSearchData(T searchData) {
        this.searchData = searchData;
    }
}
